package org.squarecap.apps.eventcompanion.domain;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import javax.persistence.Column;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(inheritanceType = "JOINED")
public abstract class Usuario {

    /**
     */
    @NotNull
    @Column(unique = true)
    @Size(min = 5, max = 80)
    private String email;

    /**
     */
    @NotNull
    @Size(min = 5, max = 80)
    private String clave;
    
    /**
     */
    @ManyToOne
    private Rol rol;
    
    /**
     */
    @Transient
    private String confirmacionClave;
}
